<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        div.justify {
            text-align: justify;
            width: 200px;
            font-size: 15px;
            color: rgb(46, 36, 36);
            border: 1px solid rgb(199, 199, 230);
            height: 18px;
        }

        div.justify>span {
            display: inline-block/* Opera */
            ;
            padding-left: 100%;
        }
    </style>
</head>

<body>
    <div class="justify">hello, text justify.</div>
    <br/>
    <div class="justify"> hello, text 1 justify.
        <span></span>
    </div>
    <br/>
    <div class="justify">中 文 两 端 对 齐</div>
    <br/>
    <div class="justify">中 文 两 端 对 齐
        <span></span>
    </div>
    <div style="width: 100px;height:100px;border:1px solid #333;" id="box1"></div>
    <script type="text/javascript" src="./jquery.js"></script>
    <script type="text/javascript">
        $(function(){
            setTimeout(function() {
                //$("#box1").css("height","");
                $("<p>p标签</p>","<span>span标签</span>").appendTo($("#box1"));
            }, 2000);
        })
    </script>
</body>

</html>